package com.baitai.system.domain;

import com.baitai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baitai.common.annotation.Excel;

/**
 * 商品图片对象 product_file
 * 
 * @author xx
 * @date 2024-07-17
 */
public class ProductFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private String productId;
    /** 文件类型 */
    @Excel(name = "图片类型")
    private String fileType;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String url;
    /** 宽 */
    @Excel(name = "宽")
    private String imageWidth;

    /** 高 */
    @Excel(name = "高")
    private String imageHeight;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
    public void setImageWidth(String imageWidth)
    {
        this.imageWidth = imageWidth;
    }

    public String getImageWidth()
    {
        return imageWidth;
    }
    public void setImageHeight(String imageHeight)
    {
        this.imageHeight = imageHeight;
    }

    public String getImageHeight()
    {
        return imageHeight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productId", getProductId())
                .append("fileType", getFileType())
                .append("url", getUrl())
                .append("imageWidth", getImageWidth())
                .append("imageHeight", getImageHeight())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
